// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org/ & https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.

namespace Stride.Core;

/// <summary>
/// Similar to the <see cref="IDisposable"/> but only deals with managed resources.
/// </summary>
/// <remarks>
/// Class implementing both <see cref="IDestroyable"/> and <see cref="IDisposable"/> should call <see cref="Destroy"/>
/// from the <see cref="IDisposable.Dispose"/> method when appropriate.
/// </remarks>
public interface IDestroyable
{
    /// <summary>
    /// Performs application-defined tasks associated with freeing, releasing, or resetting managed resources.
    /// </summary>
    void Destroy();
}
